<?php

namespace App\Http\Controllers;

use App\Http\Requests\Check\CheckStoreRequest;
use App\Http\Requests\Check\StoreIndexRequest;
use App\Models\Store;
use Illuminate\Http\Request;

class CheckController extends Controller
{
    public function storeIndex(StoreIndexRequest $request)
    {
        $inputs = $request->validated();
        return Store::checkStoreIndex($inputs);
    }

    public function checkStore(CheckStoreRequest $request)
    {
        $inputs = $request->validated();
        Store::checkStore($inputs);
        return $this->noContent();
    }
}
